package com.cskaoyan.mapper;

import com.cskaoyan.module.pojo.MarketRole;
import com.cskaoyan.module.pojo.MarketRoleExample;
import com.cskaoyan.module.systemVO.RoleIdAndNameVO;
import com.cskaoyan.module.systemVO.SystemChildren2VO;
import org.apache.ibatis.annotations.Param;

import java.util.LinkedList;
import java.util.List;

public interface MarketRoleMapper {
    long countByExample(MarketRoleExample example);

    int deleteByExample(MarketRoleExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketRole record);

    int insertSelective(MarketRole record);

    List<MarketRole> selectByExample(MarketRoleExample example);

    MarketRole selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketRole record, @Param("example") MarketRoleExample example);

    int updateByExample(@Param("record") MarketRole record, @Param("example") MarketRoleExample example);

    int updateByPrimaryKeySelective(MarketRole record);

    int updateByPrimaryKey(MarketRole record);

    List<RoleIdAndNameVO> selectRoleOptions();

    List<String> selectPermissions(Integer roleId);

    List<Integer> selectPermissionFids(Integer pid);

    String selectPermissionName(Integer id);

    String selectPermissionLabel(Integer id);

    LinkedList<SystemChildren2VO> selectPermissionC(Integer pid);

    String selectNameById(Integer id);
}